package com.ptkc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.AsyncConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author: Mr.Jiao
 * @date: 2018年11月07日
 */
@SpringBootApplication
@EnableDiscoveryClient
@ServletComponentScan
public class RunfastApplication extends SpringBootServletInitializer implements WebMvcConfigurer, AsyncConfigurer {

    public static void main(String[] args) {
        SpringApplication.run(RunfastApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(RunfastApplication.class);
    }

}
